package com.lx.patterns.flyweight;

/**
 * @ClassName AbstractBox
 * @Description: //抽象形状类
 * @Author: 落雪
 * @CreateDate: 2025/1/26 21:27
 * @UpdateUser: 落雪
 * @UpdateDate: 2025/1/26 21:27
 * @UpdateRemark:
 * @Version: 1.0
 */
public abstract class AbstractBox {

    public abstract String getShape();


    public void display(String color){
        System.out.println("颜色："+color+"，形状："+getShape());
    }
}
